package com.webemail.sys.service;

import java.util.List;

import org.springframework.stereotype.Component;

import com.webemail.sys.model.SysMessageFolder;

@Component
public interface MessageFolderService {
	int insert(SysMessageFolder temp);

	int delete(long id, long userId);

	int update(SysMessageFolder temp);

	SysMessageFolder get(long id, long userId);

	List<SysMessageFolder> list(long mailId, long userId);

	int insert(List<SysMessageFolder> temp);

	List<SysMessageFolder> listByPage(long userId, long mailId, String colomn, String word, int offset,
		int limit, int... states);

	long count(long userId, long mailId, String colomn, String word, int... states);

	List<SysMessageFolder> listByPage(long userId, String colomn, String word, int offset, int limit,
		int... states);

	long count(long userId, String colomn, String word, int... states);
}
